package com.literature.search.core.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * @Author: DangKong
 * @Date: 2023/3/3 14:10
 * @Description: 文档评审
 */

@Data
@ApiModel(value = "文档评审")
@Document(collection = "file_review")
public class FileReview implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "评审id")
    private String id;

    @Field("file_id")
    @ApiModelProperty(value = "文档id")
    private String fileId;


    @Field("file_name")
    @ApiModelProperty(value = "文档名称")
    private String fileName;

    @Field("user_id")
    @ApiModelProperty(value = "用户id")
    private String userId;


    @Field("user_name")
    @ApiModelProperty(value = "用户名")
    private String userName;


    @Field("check_state")
    @ApiModelProperty(value = "评审是否通过的状态")
    private boolean checkState;


    @Field("read_state")
    @ApiModelProperty(value = "用户是否已读的状态")
    private boolean readState;


    @Field("user_remove")
    @ApiModelProperty(value = "用户是否删除的状态")
    private boolean userRemove;


    @Field("admin_remove")
    @ApiModelProperty(value = "管理员删除评审意见")
    private boolean adminRemove;


    @Field("review_log")
    @ApiModelProperty(value = "评审意见")
    private String reviewLog;


    @Field("create_date")
    @ApiModelProperty(value = "创建时间")
    private String createDate;

    @Field("update_date")
    @ApiModelProperty(value = "更新时间")
    private String updateDate;
}
